package com.lyf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @AUTHOR LYF
 * @DATE 2022/5/29
 * @VERSION 1.0
 * @DESC
 */
@RestController
public class BalancerConsumerController {
    @Autowired
    RestTemplate restTemplate;
    @GetMapping("/test")
    String test(){
        System.out.println("RESULT:::"+restTemplate.getForObject("http://provider9010/test",String.class));
        return "test!";
    }
}
